﻿using Tauren.Form.Entity.Config;
using Tauren.Form.Entity.Global;
using Tauren.Form.Entity.Output;

namespace Tauren.Form.Service.Field_FormBLL
{
    /// <summary>
    /// 表单字段接口
    /// </summary>
    public interface IFieldService
    {
        /// <summary>
        /// 获取最新的表单字段
        /// </summary>
        /// <param name="FormId"></param>
        /// <returns></returns>
        IResponseMessage FormFields(long FormId, long VersionId);
        /// <summary>
        /// 获取表单所属的区域表
        /// </summary>
        /// <param name="FromId"></param>
        /// <returns></returns>
        IResponseMessage TableInfos(QueryModel queryModel);
        /// <summary>
        /// 保存表单数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        IResponseMessage Save(Field_Form_Version_InPut model);
        /// <summary>
        /// 发布表单数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        IResponseMessage Publish(Field_Form_Version_InPut model);
    }
}
